package com.youpai.platform.chat.service.util;

/**
 * @date: 2022/12/10
 * @author: Welles
 * @version: 1.0
 * @description: RedisKey工具类
 */
public class ChatMessageRedisKeyUtil {

    private static final String SERVICE_PREFIX = "chat-service";

    private static final String RECALL_MESSAGE_PREFIX = "recall-message";


    /**
     * 获取撤回消息cacheKey
     *
     * @param messageId 消息id
     * @return key
     */
    public static String getRecallMessageCacheKey(String messageId) {
        return String.format("%s:%s:%s", SERVICE_PREFIX, RECALL_MESSAGE_PREFIX, messageId);
    }


}
